#include <iostream>
#include <string>

static uint32_t s_AllocCount = 0;

void* operator new(size_t size)
{
    s_AllocCount++;
    std::cout << "Allocating " << size << "bytes" << std::endl;
    return malloc(size);
}

void PrintName(std::string& name)
{
    std::cout << name << std::endl;
}

int main()
{
    std::string name = "xxxxxxxxxx iii  Caoxiansheng";
    PrintName(name);
    std::cout << s_AllocCount << "allocations\n";

}
